package com.ruoyi.thread.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;

// 订单处理结果
@Data
@AllArgsConstructor
@NoArgsConstructor
public class OrderResult {
    private boolean success;
    private String message;
    private Long orderId;
    private BigDecimal totalAmount;
    private List<String> warnings;
    
    public OrderResult(boolean success, String message) {
        this.success = success;
        this.message = message;
        this.warnings = new ArrayList<>();
    }
}